package cn.stylefeng.guns.modular.erstar.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 收藏
 *
 * @author wpk
 * @date 2021/06/27 16:49
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ErStarParam extends BaseParam {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空",groups = {edit.class})
    private Long id;

    /**
     * 帖子id
     */
    @NotNull(message = "帖子id不能为空",groups = {add.class,edit.class})
    private Long eid;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人
     */
    private Long createUser;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 更新人
     */
    private Long updateUser;

    /**
     * uid
     */
    @NotNull(message = "uid不能为空",groups = {add.class,edit.class})
    private Long uid;

}
